package day06;
//数组的演示
public class ArrayDemo {
    public static void main(String[] args){
        int a[]= new int[15];//5,7,9,12,15,17 0 0 0 0 0 0 0 0 0
        int b[]={1,3,5,7,9,12,15,17,20,21,25,30};

         /*
          b 源数组
          2 源数组的起始下标
          a 目标数组
          0 目标数组起始下标
          6 要复制元素的个数

        System.arraycopy(b,2,a,0,6);
        for (int i=0;i<a.length;i++){//遍历数组
            System.out.print(a[i]+"\t");
        }*/
    }
}
